<?php
/**
 * Created by PhpStorm.
 * User: geolo
 * Date: 2018/10/22
 * Time: 17:01
 */
namespace app\models;

use Yii;
/**
 * This is the model class for table "{{%split}}".
 *
 * @property integer $store_id
 * @property string $name
 * @property string $color
 * @property integer $height
 * @property integer $is_delete
 */
class Split extends \yii\db\ActiveRecord
{
    public static function tableName()
    {
        return '{{%split}}';
    }
    public function rules(){
        return[
            [['store_id','color','height','name'],'required'],
            [['store_id','is_delete'],'integer'],
            [['name','color','height'],'string']
        ];
    }
    public function attributeLabels()
    {
        return[
            'store_id'=>'Store_id',
            'color'=>'颜色',
            'name'=>'名称',
            'height'=>'高度',
            'is_delete'=>'is_delete',
        ];
    }
}